home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 059 (1989-12)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 059 (1989-12)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / Xoper / Xoper.doc < prev    next >
Text File  |  1989-11-15  |  21KB  |  557 lines

  1.                  Xoper V2.1
  2.  
  3.             Copyright (c) Werner Gunther 1989
  4.  
  5. Xoper is a freeware program to display and to control system activity.
  6. Permition is granted to freely distribute this program.
  7.  
  8. --------------------------------------------------------------------------
  9. Changes in V1.2:
  10. New commands: Snoop, Capture, ClrCool, ClrWarm, ClrCold.
  11. Added        : CPU usage by task.
  12.  
  13. Cancel command has been rewritten, some minor bugs removed.
  14. ---------------------------------------------------------------------------
  15. Changes in V1.3:
  16. New commands: [S]=Stack usage, Sort, Hide, Hidden, Header, Window,
  17.           InputHandler.
  18. Added        : Support of startup-scripts, I/O Interrupts/second, 'Kill' an
  19.           alias for 'Cancel'.
  20. Some BIG bugs have been removed: The port-display used to GURU if more than
  21. 32 Ports did exist. The Cli Xoper has been started did act like having a
  22. priority of 128. Unlock didn't unlock sometimes, the interrupt/priority
  23. field did contain rubbish, Currentdir didn't examine all Processes.
  24. There were some more, minor bugs, all (hopefully) removed.
  25. ---------------------------------------------------------------------------
  26. Changes in V1.3b:
  27. New commands: [C] information on CLI-Tasks.
  28. Added        : 'Time 0' stops any update, System-Requesters are now handeled
  29.           correctly (affects 'Kill' and 'Closewindow').
  30. ---------------------------------------------------------------------------
  31. Changes in V2.0:
  32. The 'user interface' (what user interface ?) has been rewritten from
  33. scratch, and a small iconify routine has been added. To customize the whole
  34. thing a little bit, there are a few new commands:
  35.  MinimumChars, HistoryLines, ShowHistory, KillHistory, OutputLines,
  36. IconifyOff, BackDropIcon, UseScreen, UseWindow.
  37. Other new commands include:
  38. TimerIO, RemResident, Repeat, TrapGuru, Setfont, DiskChange, Alias,
  39. SaveOutput.
  40. Addresses are now shown as 32-Bit values for 68020 compatibility. The 'More'
  41. command is obsolete and has been removed. The 'interrupt list' has two new
  42. fields. 'Time' w/o parameters shows current setting. 'display commands'
  43. separated by blanks will display the lists one by one, instead of
  44. displaying them all at once.
  45. ---------------------------------------------------------------------------
  46. Changes in V2.1:
  47. Mostly bug fixes:
  48.  KS1.3 dependancy removed. Using UseScreen in the startup file could crash
  49. the program if started with the -b flag. The S (stack) command wasn't
  50. robust enought. Some strangness in the 'KILL' routine have been removed.
  51. The iconizing routine couldn't distinguish between multiple drags and
  52. doubleclicks.
  53. Added: SetFKeys, Time accepts values < 1, 'Windows' shows the owner task (if
  54. available). The task display shows the name of the loaded command
  55. (enclosed in '[]') instead of the name, if the task is a CLI, 'CLICmd'
  56. toggles this feature on/off. Commandline completion using <tab>.
  57.  
  58. A new program 'KillXoper' has been added to the distribution to remove
  59. Xoper from memory in case it loops or freezes (I hope it won't be needed).
  60. ---------------------------------------------------------------------------
  61.  
  62. Starting Xoper from CLI:
  63.  
  64. Xoper [T] [F] [S] [L] [D] [R] [E] [M] [P] [I] [C]
  65.  
  66. These parameters are described below. For all those who like long
  67. Startup-Sequences, overcrowded memory and hot-keys enter
  68.  
  69. Xoper -b
  70.  
  71. This will install Xoper in background waiting for LeftAmiga-RightAmiga-X
  72. to pop up. In both cases you don't have to RUN or RUNBACK Xoper, it will
  73. always create its own process.
  74.  
  75. At startup Xoper loads and executes a file named S:Xoper.Startup if such a
  76. file is available. This startup-script is used to set default values, the
  77. window size or the initial default list to be displayed. The Xoper-window
  78. will only be opened after the startup-script has been processed. Look at the
  79. end of the document for a sample startup file.
  80.  
  81. Xoper Window:
  82. -------------
  83.  The window (or screen if you request one) is devided into two sections: a
  84. very small input line on the bottom and a large output area on the top. If
  85. the output exceeds the size of the window you may scroll or 'page' through
  86. the text using the num-pad keys:
  87.  
  88. A1000  A2000/A500
  89.   7    Home        Top of display
  90.   1    End        Bottom
  91.   9    Pg Up        one page up
  92.   3    Pg Dn        one page down
  93.   8    Up Arrow    one line up
  94.   2    Down Arrow    one line down
  95.   4    Left Arrow    one page left
  96.   6    Right Arrow    one page right
  97.  
  98.  The input section has some line editing facilities and a history buffer
  99. contollable with the following keys (similar to NewCon and ConMan):
  100.  
  101. Cursor left        cursor one character left
  102. Shift  left        cursor to the start of the next word
  103. Cursor right        one character right
  104. Shift  right        previous word
  105. Cursor Up        previous line in history buffer
  106. Shift  Up        top of buffer
  107. Cursor Down        next line in history buffer
  108. Shift  Down        bottom of buffer
  109. DEL            DEL
  110. BS            backspace
  111. Ctrl   X        delete line
  112. Ctrl   Y        delete EOL
  113. Ins   (numpad '0')      toggles insert mode (default is 'on')
  114. Del   (numpad '.')      same as DEL
  115.  
  116. ESC            moves the input area from the bottom into the
  117.             output section. Entering a command here (i.e
  118.             overwiting an output line), will cause Xoper to add
  119.             the address of that node to your command line.
  120.             Example: Show the hunks of a 'File.System' process:
  121.             type 'T' to get a list of all tasks, press <esc>,
  122.             move the cursor to the line displaying the
  123.             File.System process and type 'Hunks <enter>'. Press
  124.             <enter> once more to return to the usual Xoper
  125.             display.
  126. Help            displays a help panel.
  127. TAB            Command line completion.
  128.             Example: press <c>, hit <tab> several times.
  129.  
  130. The Xoper window has, beside the usual closewindow and depth-arrange
  131. gadgets, a custom gadget on its title bar, used to iconify Xoper. The icon
  132. may be moved anywhere on the screen just by dragging it, double clicking
  133. the icon will restart the program. The window itself is a simple_refresh
  134. window, so it may look a little bit sluggish when it needs a refresh.
  135.  
  136. Xoper Commands:
  137. ---------------
  138.  
  139.  Commands are entered in the command line at the bottom of the window,
  140. these are divided into two groups:
  141.  
  142. Display commands: These are always single character entries and may be
  143. specified in any order, upper or lower case, after the prompt or from CLI
  144. as parameters. If more than one list has to be displayed, you may enter
  145. several commands in one line. Separating them with blanks display the lists
  146. one by one instead of showing them all at once.
  147.  
  148. T = Tasks (Default if Xoper is called without parameters)
  149. Task node (HEX), Display type, status, priority (decimal), CPU usage
  150. (percent), processnumber for Dos-Processes (decimal), taskname (or the
  151. name of the loaded command, if a CLI process. The loaded command name
  152. is enclosed in '[]').
  153.  
  154. F = Task Flags
  155. Task node (HEX), Allocated Signals (HEX), Signals the Task is waiting for
  156. (HEX), Signals received (HEX), Address of the next instruction to be
  157. executed (HEX).
  158.  
  159. C = Cli Commands
  160. Task node (HEX), Type (interactive/batch), Mode (Background/Foreground),
  161. CLI number, CLI name, program it executes.
  162.  
  163. L = Libraries
  164. Base address (HEX), open count (decimal), version (decimal), revision
  165. (decimal), flags (binary), libraryname.
  166.  
  167. D = Devices
  168. Base address (HEX), open count (decimal), version (decimal), revision
  169. (decimal), flags (binary), devicename.
  170.  
  171. E = Resident (sorry)
  172. Base address (HEX), priority (decimal), flags (binary), version
  173. (decimal), type, name.
  174.  
  175. R = Resources
  176. Base address (HEX), open count (decimal), version (decimal), revision
  177. (decimal), flags (binary), resource name.
  178.  
  179. M = Memory
  180. Lower and upper bounds (HEX), bytes free (decimal), attributes, priority
  181. (decimal), hunk name.
  182.  
  183. P = Ports
  184. Node address (HEX), portname, flags, signal bit (decimal), queue length
  185. [number of messages] (decimal), taskname.
  186.  
  187. I = Interrupts
  188. Node address (HEX), pointer to interrupt data (HEX), pointer to interrupt
  189. code (HEX), priority (decimal),[T]ype ([S]erver/[H]andler), [S]tate
  190. ([E]nabled/[D]isabled), type (interrupt queue the interrupt belongs to),
  191. interrupt name.
  192.  
  193. S = Stack
  194. Lower limit of the stack, stack size, currently used stacksize, taskname.
  195. If you want to minimize your stack using this utility, please note that
  196. DOS-functions use 1500 Bytes at the bottom of the Stack frame for their own
  197. purposes and note that the stacksize is only checked one time per second by
  198. this command.
  199.  
  200. H = Help ( or ?)
  201. Show a list of commands.
  202.  
  203. ; = NOP
  204. Skip this line (used for remarks in a script file)
  205.  
  206. Q = Quit
  207. Same as QUIT (see below).
  208.  
  209. Example: Entering TPM would display Tasks, Ports and Memory. The display
  210. would be updated after a few seconds (5 by default, may be changed
  211. anytime, see below.)
  212.  
  213. Other commands that do not display EXEC lists:
  214. These commands may be entered upper or lower case. Parameters enclosed
  215. in '<>' must be, enclosed in '[]' may be specified. Names are usually
  216. entered as ascii strings, it can however happen that two or more nodes of
  217. the same name exist. On tasks you may specify the DOS-Processnumber to
  218. sort them out. If everything fails, you can enter the Node-Address with a
  219. leading '$'. This address will be checked first before the command is being
  220. executed. If the check fails, you'll get an error message or a warning or
  221. a prompt, depending on what went wrong. Names are always the last parameter
  222. to enter. This may seem strange, but it is the simplest way to get rid of
  223. embedded blanks.
  224.  
  225. Time <seconds>
  226. Set time between updates. Minimum is 0.1 seconds, maximum is 255.9, default
  227. is 5 seconds. Time 0 stops automatic update and waits for a keypress. Values
  228.  < 0.5 are not recommended.
  229. Example: Time 1.5
  230.  
  231. Taskpri <priority> [processnumber] <taskname>
  232. Change the priority of a task. Values may range from -127 to 127, better
  233. use values between -5 and 5.
  234. Example: Taskpri 1 New Cli
  235.  
  236. Mypri <priority>
  237. Shortcut for "Taskpri Xoper <priority>"
  238. Example: Mypri 2
  239.  
  240. Pri <priority> <nodename>
  241. Change the priority of any other node. This command does not work for Tasks.
  242. If the specified node has been found, the entire list the node belongs to
  243. will be resorted.
  244. Example: Pri 1 Chip Memory      (try to allocate memory in CHIP first)
  245.  
  246. Break [processnumber] <taskname>
  247. Set break signals. Useful for tasks running in background or from Workbench.
  248. Example: Break 3 New CLI
  249.  
  250. Hunks [processnumber] <processname>
  251. Show location, BCPL-Pointers and length of memory blocks the process uses.
  252. Example: Hunks RAM
  253.  
  254. Snoop [processnumber] <taskname>
  255. Track memory allocation/deallocation of a task. Press break (CTRL-C) to
  256. stop. List includes: action (alloc/free), memory requirements (CHIP/ FAST/
  257. PUBLIC etc), memory size, memory location (start, end) and the address from
  258. where AllocMem() was called.
  259.  
  260. Files
  261. List lock, access, size and name of open files.
  262.  
  263. Locks
  264. List any lock.
  265. BUG: Trying to lock the Volume "RAM Disk" crashes the machine sometimes. If
  266. a Volume "RAM Disk" is found it will be replaced by the devicename "RAM:"
  267. (this has been fixed on WB 1.3). Make sure you don't have a disk labeled
  268. "RAM Disk" or you'll never see its locks:-)
  269.  
  270. Currentdir
  271. List current directory settings of all processes.
  272.  
  273. Devices
  274. List name,heads,sectors,tracks,startup-buffers and handler-process of every
  275. DOS-device.
  276.  
  277. Inputhandler
  278. Display node, priority and name (if any) of the input-handlers currently in
  279. use.
  280.  
  281. Capture
  282. Show vectors controlling the reset, i.e. CoolCapture, ColdCapture and
  283. WarmCapture pointers, KickMem allocations. Useful when searching
  284. for Viruses, but remember that the RAD: device in 1.3 uses the KickMem
  285. pointer to recover from a reset.
  286.  
  287. ClrCool
  288. ClrCold
  289. ClrWarm
  290. Clear one of those pointers.
  291.  
  292. TimerIO
  293. Display pending timer requests. It shows the address of the
  294. IORequest-structure, the unit (MICROHZ or VBLANK), the time to complete (up
  295. to 255 secs) and the task submitting the request.
  296.  
  297. RemResident <resident module name>
  298. Kicks the resident module out of the ResModules-List. It does not free the
  299. module itself, but only makes sure it won't be reactivated during the next
  300. reset. Removing a ROM-based module does not have any effect.
  301.  
  302. Repeat <Command string>
  303. Repeats the command string at the current refresh rate (see 'Time').
  304. However, commands not producing any output won't be repeated, but only
  305. executed once. Press <enter> to stop.
  306. Example: Time 1
  307.      Repeat TimerIO
  308.  
  309. TrapGuru
  310. Activates a trap handler similar to GOMF. It only works with a 68000
  311. processor, as it relys on a specified stack frame (at least I think so,
  312. couldn't check it out). If an exception occurs (i.e. GURU) Xoper will
  313. stop (or popup, if running in background) and display some information
  314. about what happened (the taskname causing the error, its program counter,
  315. the alert number etc.) and you'll be asked if you want to (K)ill the task
  316. or (I)gnore the exception. Choosing (i)gnore will do nothing at all if the
  317. erroneous program was a process (as it will stop itself displaying a
  318. 'Task held...' requester), but force a task to execute a 'Wait(0L)' (i.e.
  319. wait forever) as tasks do directly display an alert box.
  320.  
  321. Alias <AliasName> <CommandName>
  322. Defines a new name to be used along with the original command name. The new
  323. name should not contain any blanks.
  324. Example: Alias ih InputHandler
  325.  
  326. SetFKey <key number> <string>
  327. Assign a string to a funktion key. 'Key number' is a value between 1-20,
  328. 10-20 denotes shifted keys. Use '^' to simulate a <return> and '_' for
  329. space (the parser strips leading/trailing blanks).
  330. Example: SetFKey 1 Hunks^
  331.      enter t <return>, press <escape>, move the cursor to a process,
  332.      press F1
  333.  
  334. Lockdrive <drivename:>
  335. Prevent DOS, Workbench and Disk-Validator from cluttering on the drive.
  336. This command isn't very useful, but I needed it myself. Please note that
  337. the drivename is case sensitive and has to end with a ':'.
  338.  
  339. Freedrive <drivename:>
  340. Re-enable a drive.
  341.  
  342. DiskChange
  343. Show all installed diskchange interrupts. It displays the node, data and
  344. code fields of the interrupt, the device it is attached to (df0:-df3:) and
  345. the task which added the interrupt (if available). The main purpose for
  346. this command is to check for a virus, as the diskchange interrupt is a
  347. wonderful place to install them.
  348.  
  349. Windows
  350. List address and title of all windows.
  351.  
  352. Screens
  353. List address and title of screens.
  354.  
  355. Fonts
  356. List address,height,width,type,fist character and last character of all
  357. loaded fonts.
  358.  
  359. Windowfonts
  360. List Windows and associated fonts.
  361.  
  362. SetFont [size] <fontname> <window>
  363. Change the default font of a window. To avoid confusion, you should use a
  364. font with the same font size as the original font, as many programs rely on
  365. the point size.
  366. Example: Windows
  367.      Press <esc>, move the cursor to the Xoper window line and type
  368.      Setfont diamond.font
  369.      (now you know what I mean by 'relying on a font size' :-))
  370.  
  371. Freeze [processnumber] <taskname>
  372. Halt a Task. The task should be READY or WAITING. Frozen tasks are queued in
  373. a new list called FROZEN. When you leave Xoper, halted Task will be
  374. released.
  375. Example: Freeze Killer Graphics Task
  376.  
  377. Warm [processnum] <taskname>
  378. Restart a halted Task. Task must be FROZEN.
  379. Example: Warm Killer Graphics Task
  380.  
  381. Hide <taskname>
  382. The task-list tend to be longer than the window size. You may inhibit the
  383. output of some tasks you are not interested in using his command.
  384. Example: Hide trackdisk.device
  385.  
  386. Hidden
  387. Turn those hidden Tasks back on. It is actually a toggle.
  388.  
  389. Header
  390. Toggle the (rather long) header on the task display on/off.
  391.  
  392. Sort
  393. The tasks listing is sorted (on V1.3 and above) to avoid 'jumping' of the
  394. display. Sort toggles this feature on/off. (Stupid command, but was easy
  395. to implement).
  396.  
  397. CLICmd
  398. Toggles between showing the loaded command and the taskname of CLI processes
  399. in the tasks listing.
  400.  
  401. Info <librarynode | devicenode>
  402. Show additional information stored in the lib_IdString field.
  403. Example: Info arp.library
  404.  
  405. Openlib <libraryname>
  406. Open a library. This is useful if you don't want a specified library being
  407. 'flushed' out.
  408. Example: Openlib arp.library
  409.  
  410. Clear [longword]
  411. Fill unused memory chunks with pattern, default is 0. Handy for debuggers.
  412. Example: Clear $66726565
  413.  
  414. Flush
  415. Clean up memory, flush unused libraries, devices and fonts.
  416.  
  417. Lastalert
  418. Show last Guru Meditation code or rubbish.
  419.  
  420. Usage
  421. Toggle CPUSE field on the task display between usage relative to all
  422. possible dispatches and usage relative to actually dispatched tasks.
  423. Ahem...not very clear I think. Well, let me try again...
  424. If you add all CPUSE fields together you get 100 % (more or less 1%). After
  425. entering "Usage" adding the fields together will give you the same value as
  426. shown in the 'CPU Activity field'. (I HATE having to write docs)
  427.  
  428. Taskports
  429. Disable / enable a listing of taskports if ports are displayed.
  430.  
  431. Window <leftedge> [toptedge [width [height]]]
  432. Works only on script files. Defines the window to be opened.
  433. Example: Window 0 0 550 190
  434.  
  435. HistoryLines <number of lines>
  436. Set the maximum number of input lines the history buffer should hold.
  437. Default is 10 lines.
  438.  
  439. MinimumChars <number of characters>
  440. Set the minimum number of characters an inputline should have to be added to
  441. the history buffer.
  442. Default is 2 characters.
  443.  
  444. ShowHistory
  445. Show the history buffer. (quite useless, I know)
  446.  
  447. KillHistory
  448. Delete all lines from the history buffer. (still useless)
  449.  
  450. OutputLines <number of lines>
  451. Set the maximum number of lines the output buffer may hold. If the buffer
  452. overflows, a line from the top of the buffer will be deleted for each new
  453. line.
  454. The default value is 500, using a maximum of 500 * 104 = 52000 bytes.
  455.  
  456. SaveOutput <filename>
  457. Write the contents of the output buffer to a file.
  458.  
  459. IconifyOff
  460. Turns the iconifying routine off, freeing all memory associated with its
  461. code and image.
  462.  
  463. BackDropIcon
  464. Puts the Xoper icon behind all other windows, instead of creating it on top
  465. of them.
  466.  
  467. UseScreen
  468. Opens Xoper on a screen. The new screen will take its data (width, colors,
  469. viewmodes etc.) from the Workbench screen and open a borderless backdrop
  470. window on it.
  471.  
  472. UseWindow
  473. Opens Xoper on a window.
  474.  
  475. Quit or just Q
  476. Exit Xoper. If Xoper was started with '-b' or if 'Hold' was specified it
  477. will stay in background waiting for LeftAmiga-RightAmiga-X.
  478.  
  479. Hold
  480. Exit Xoper but install a key-handler and stay in background. Window
  481. settings and display commands are saved.
  482.  
  483. Exit
  484. Clean up and quit.
  485.  
  486. !!!! WARNING: The next few commands are dangerous and 'dirty' !!!!!
  487. !!!!!!!!!!!! don't use them if not strictly necessary !!!!!!!!!!!!!
  488.  
  489. Kill [processnumber] <taskname>
  490. Kill a task or a process. If the task has been called from CLI, the Task
  491. itself and the CLI will be killed. Hunks, Windows, Screens  and the
  492. teminal-window will be freed. Simple tasks are just RemTask()'ed. If it is
  493. not a CLI Task you'll be asked if it is a Workbench task, if the answer is
  494. 'Yes' unloading will be done by the Workbench. If not, you will be prompted
  495. if Xoper should unload the code. Enter 'No' if you don't know how the task
  496. has been started. A good example for tasks that should NEVER be unloaded are
  497. program started by ARP'S ASyncRun (or ARun).
  498.  
  499. Closewindow <title>
  500. Closes a Window. Please, use it only if the corresponding Task has been
  501. 'Cancel'ed. Use the Window-Structure address if the window has no name.
  502.  
  503. Closescreen <title>
  504. same as above, but for screens.
  505.  
  506. Unlock <lock (BPTR)>
  507. Unlock a file.
  508.  
  509. Closelib <libraryname>
  510. This is exactly the same as CloseLibrary().
  511.  
  512. CD [processnumber] <processname>
  513. Change the current directory of a process. You are prompted if the old
  514. directory lock should be unlocked.
  515.  
  516. Signal <mask> [processnumber] <taskname>
  517. Set any task-signal. Mask is a hexadecimal value with or w/o leading '$'.
  518. See task's SIGWAIT field for sensible values. Tasks normally do not wait for
  519. signals only, but for messages, that's why this command may not have the
  520. desired effect, but it is quite useful for tasks hanging around and waiting
  521. for events that may never happen. Warning: Using Signal without any
  522. knowledge about what you are going to signal may cause a system-crash!
  523. Example: Signal 10000000 PopCLI III
  524.  
  525. ----------------------------------------------------------------------------
  526. ;Sample Startup Script (to be placed in s:Xoper.Startup)
  527. ;
  528. ; Window definition on a overscanned + PAL Workbench screen
  529. Window 122 0 550 230
  530. ;
  531. ;don't display some Tasks
  532. ;
  533. Hide CON
  534. Hide trackdisk.device
  535. ;
  536. ;but turn them on on Startup
  537. ;
  538. Hidden
  539. ;
  540. ;Change the default list to Ports
  541. ;
  542. P
  543. ;don't display any prompt if the window is full
  544. More
  545. ----------------------------------------------------------------------------
  546. Please send flames, bug reports and especially a list of features you would
  547. like to have included in the next version to
  548.  
  549.  Werner Gunther
  550.  Wingertspfad 12
  551.  D 6900 Heidelberg
  552.  (Germany)
  553.  
  554. or to my EMAIL address for a fast response:
  555.  
  556.  G35@DHDURZ1.BITNET
  557.